<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>bfpy.bfclient</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="bfpy-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/bfpy/">BfPy</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="bfpy-module.html">Package&nbsp;bfpy</a> ::
        Module&nbsp;bfclient
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="bfpy.bfclient-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="bfpy.bfclient-module.html">Module bfpy.bfclient</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/env python</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-comment"># -*- coding: latin-1; py-indent-offset:4 -*-</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-comment">################################################################################</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-comment"># </tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-comment"># This file is part of BfPy</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-comment"># BfPy is a Python library to communicate with the Betfair Betting Exchange</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-comment"># Copyright (C) 2010 Daniel Rodriguez (aka Daniel Rodriksson)</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-comment"># Copyright (C) 2011 Sensible Odds Ltd.</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt class="py-comment"># You can learn more and contact the author at:</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"><tt class="py-comment">#    http://code.google.com/p/bfpy/</tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-comment"># BfPy is free software: you can redistribute it and/or modify</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-comment"># it under the terms of the GNU General Public License as published by</tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"><tt class="py-comment"># the Free Software Foundation, either version 3 of the License, or</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-comment"># (at your option) any later version.</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-comment"># BfPy is distributed in the hope that it will be useful,</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"><tt class="py-comment"># but WITHOUT ANY WARRANTY; without even the implied warranty of</tt> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"><tt class="py-comment"># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line"><tt class="py-comment"># GNU General Public License for more details.</tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"><tt class="py-comment"># You should have received a copy of the GNU General Public License</tt> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"><tt class="py-comment"># along with BfPy. If not, see &lt;http://www.gnu.org/licenses/&gt;.</tt> </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line"><tt class="py-comment">################################################################################</tt> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line"><tt class="py-docstring">'''</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line"><tt class="py-docstring">BfClient object implementation.</tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line"><tt class="py-docstring">'''</tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line"> </tt>
<a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module bfpy.bfapi=bfpy.bfapi-module.html"><a title="bfpy.bfapi" class="py-name" href="#" onclick="return doclink('link-0', 'bfapi', 'link-0');">bfapi</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Class bfpy.bfapi.BfApi=bfpy.bfapi.BfApi-class.html"><a title="bfpy.bfapi.BfApi" class="py-name" href="#" onclick="return doclink('link-1', 'BfApi', 'link-1');">BfApi</a></tt><tt class="py-op">,</tt> <tt id="link-2" class="py-name" targets="Class bfpy.bfapi.BfService=bfpy.bfapi.BfService-class.html"><a title="bfpy.bfapi.BfService" class="py-name" href="#" onclick="return doclink('link-2', 'BfService', 'link-2');">BfService</a></tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Module bfpy.bfclientext=bfpy.bfclientext-module.html"><a title="bfpy.bfclientext" class="py-name" href="#" onclick="return doclink('link-3', 'bfclientext', 'link-3');">bfclientext</a></tt>  </tt>
<a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line"> </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line"> </tt>
<a name="BfClient"></a><div id="BfClient-def"><a name="L37"></a><tt class="py-lineno">37</tt> <a class="py-toggle" href="#" id="BfClient-toggle" onclick="return toggle('BfClient');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="bfpy.bfclient.BfClient-class.html">BfClient</a><tt class="py-op">(</tt><tt class="py-base-class">BfApi</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BfClient-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="BfClient-expanded"><a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">    <tt class="py-docstring">'''</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line"><tt class="py-docstring">    The class defines a higher level interface over the L{BfApi} parent class.</tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line"><tt class="py-docstring">    The intention is to have some services redefine/extend the functionality</tt> </tt>
<a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line"><tt class="py-docstring">    in a intelligent manner.</tt> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"><tt class="py-docstring">    As an example de redefined "getEvents" unifies getActiveEventTypes and getEvents</tt> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line"><tt class="py-docstring">    (it is used as such in the Bfplusplus application &lt;http://code.google.com/p/bfplusplus&gt;</tt> </tt>
<a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line"><tt class="py-docstring">    The redefintion is made by means of non-data descriptors in the bfclientext</tt> </tt>
<a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line"><tt class="py-docstring">    module</tt> </tt>
<a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line"><tt class="py-docstring">    @ivar serviceDefs: service definitions with non-data descriptors</tt> </tt>
<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line"><tt class="py-docstring">    @type clients: list</tt> </tt>
<a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line"><tt class="py-docstring">    The following services are redefined here (see L{BfApi} for the originals):</tt> </tt>
<a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line"><tt class="py-docstring">        - getCurrentBets</tt> </tt>
<a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line"><tt class="py-docstring">          Enables 'MU' as parameter for betStatus, by issuing a call with 'M'</tt> </tt>
<a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line"><tt class="py-docstring">          and a call with 'U' and returning a unified answer</tt> </tt>
<a name="L59"></a><tt class="py-lineno">59</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line"><tt class="py-docstring">          Default values: betStatus='MU'</tt> </tt>
<a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line"><tt class="py-docstring">        - getEvents:</tt> </tt>
<a name="L63"></a><tt class="py-lineno">63</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line"><tt class="py-docstring">          Unifies getEvents and getActiveTypeEvents. The results of the second</tt> </tt>
<a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line"><tt class="py-docstring">          are aliased to look like the results of the first</tt> </tt>
<a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line"><tt class="py-docstring">          Default values: eventParentId = -1 (return getActiveTypeEvents)</tt> </tt>
<a name="L68"></a><tt class="py-lineno">68</tt>  <tt class="py-line"><tt class="py-docstring">          </tt> </tt>
<a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line"><tt class="py-docstring">        - placeBets</tt> </tt>
<a name="L70"></a><tt class="py-lineno">70</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L71"></a><tt class="py-lineno">71</tt>  <tt class="py-line"><tt class="py-docstring">          Hack to enable re-placement of bets if they fail with an "INVALID_PERSISTENCE"</tt> </tt>
<a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line"><tt class="py-docstring">          given that the results from getEvents do not say if a market will turn</tt> </tt>
<a name="L73"></a><tt class="py-lineno">73</tt>  <tt class="py-line"><tt class="py-docstring">          in-play or not</tt> </tt>
<a name="L74"></a><tt class="py-lineno">74</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L75"></a><tt class="py-lineno">75</tt>  <tt class="py-line"><tt class="py-docstring">          This is a hack and may be removed</tt> </tt>
<a name="L76"></a><tt class="py-lineno">76</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L77"></a><tt class="py-lineno">77</tt>  <tt class="py-line"><tt class="py-docstring">          Default values: _nonIPRePlace=False</tt> </tt>
<a name="L78"></a><tt class="py-lineno">78</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L79"></a><tt class="py-lineno">79</tt>  <tt class="py-line"><tt class="py-docstring">    '''</tt> </tt>
<a name="L80"></a><tt class="py-lineno">80</tt>  <tt class="py-line"> </tt>
<a name="L81"></a><tt class="py-lineno">81</tt>  <tt class="py-line">    <tt id="link-4" class="py-name" targets="Variable bfpy.bfclient.BfClient.__metaclass__=bfpy.bfclient.BfClient-class.html#__metaclass__"><a title="bfpy.bfclient.BfClient.__metaclass__" class="py-name" href="#" onclick="return doclink('link-4', '__metaclass__', 'link-4');">__metaclass__</a></tt> <tt class="py-op">=</tt> <tt id="link-5" class="py-name"><a title="bfpy.bfapi.BfService" class="py-name" href="#" onclick="return doclink('link-5', 'BfService', 'link-2');">BfService</a></tt> </tt>
<a name="L82"></a><tt class="py-lineno">82</tt>  <tt class="py-line"> </tt>
<a name="L83"></a><tt class="py-lineno">83</tt>  <tt class="py-line">    <tt class="py-comment"># Methods that override base class non-data descriptors, are implemented</tt> </tt>
<a name="L84"></a><tt class="py-lineno">84</tt>  <tt class="py-line">    <tt class="py-comment"># as non-data descriptors also (simple override doesn't work)</tt> </tt>
<a name="L85"></a><tt class="py-lineno">85</tt>  <tt class="py-line">    <tt id="link-6" class="py-name" targets="Variable bfpy.bfapi.BfApi._serviceDefs=bfpy.bfapi.BfApi-class.html#_serviceDefs,Variable bfpy.bfclient.BfClient._serviceDefs=bfpy.bfclient.BfClient-class.html#_serviceDefs"><a title="bfpy.bfapi.BfApi._serviceDefs
bfpy.bfclient.BfClient._serviceDefs" class="py-name" href="#" onclick="return doclink('link-6', '_serviceDefs', 'link-6');">_serviceDefs</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt> </tt>
<a name="L86"></a><tt class="py-lineno">86</tt>  <tt class="py-line">        <tt id="link-7" class="py-name"><a title="bfpy.bfclientext" class="py-name" href="#" onclick="return doclink('link-7', 'bfclientext', 'link-3');">bfclientext</a></tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Class bfpy.bfclientext.GetEvents=bfpy.bfclientext.GetEvents-class.html"><a title="bfpy.bfclientext.GetEvents" class="py-name" href="#" onclick="return doclink('link-8', 'GetEvents', 'link-8');">GetEvents</a></tt><tt class="py-op">(</tt><tt id="link-9" class="py-name" targets="Variable bfpy.bftypes.GetEventsReq.eventParentId=bfpy.bftypes.GetEventsReq-class.html#eventParentId"><a title="bfpy.bftypes.GetEventsReq.eventParentId" class="py-name" href="#" onclick="return doclink('link-9', 'eventParentId', 'link-9');">eventParentId</a></tt><tt class="py-op">=</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L87"></a><tt class="py-lineno">87</tt>  <tt class="py-line">        <tt id="link-10" class="py-name"><a title="bfpy.bfclientext" class="py-name" href="#" onclick="return doclink('link-10', 'bfclientext', 'link-3');">bfclientext</a></tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Class bfpy.bfclientext.GetCurrentBets=bfpy.bfclientext.GetCurrentBets-class.html"><a title="bfpy.bfclientext.GetCurrentBets" class="py-name" href="#" onclick="return doclink('link-11', 'GetCurrentBets', 'link-11');">GetCurrentBets</a></tt><tt class="py-op">(</tt><tt id="link-12" class="py-name" targets="Variable bfpy.bftypes.GetCurrentBetsLiteReq.betStatus=bfpy.bftypes.GetCurrentBetsLiteReq-class.html#betStatus,Variable bfpy.bftypes.GetCurrentBetsReq.betStatus=bfpy.bftypes.GetCurrentBetsReq-class.html#betStatus,Variable bfpy.bftypes.GetMUBetsLiteReq.betStatus=bfpy.bftypes.GetMUBetsLiteReq-class.html#betStatus,Variable bfpy.bftypes.GetMUBetsReq.betStatus=bfpy.bftypes.GetMUBetsReq-class.html#betStatus"><a title="bfpy.bftypes.GetCurrentBetsLiteReq.betStatus
bfpy.bftypes.GetCurrentBetsReq.betStatus
bfpy.bftypes.GetMUBetsLiteReq.betStatus
bfpy.bftypes.GetMUBetsReq.betStatus" class="py-name" href="#" onclick="return doclink('link-12', 'betStatus', 'link-12');">betStatus</a></tt><tt class="py-op">=</tt><tt class="py-string">'MU'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L88"></a><tt class="py-lineno">88</tt>  <tt class="py-line">        <tt id="link-13" class="py-name"><a title="bfpy.bfclientext" class="py-name" href="#" onclick="return doclink('link-13', 'bfclientext', 'link-3');">bfclientext</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Class bfpy.bfclientext.PlaceBets=bfpy.bfclientext.PlaceBets-class.html,Class bfpy.bftypes.PlaceBets=bfpy.bftypes.PlaceBets-class.html"><a title="bfpy.bfclientext.PlaceBets
bfpy.bftypes.PlaceBets" class="py-name" href="#" onclick="return doclink('link-14', 'PlaceBets', 'link-14');">PlaceBets</a></tt><tt class="py-op">(</tt><tt class="py-name">_nonIPRePlace</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L89"></a><tt class="py-lineno">89</tt>  <tt class="py-line">        <tt class="py-op">]</tt> </tt>
<a name="L90"></a><tt class="py-lineno">90</tt>  <tt class="py-line"> </tt>
<a name="BfClient.__init__"></a><div id="BfClient.__init__-def"><a name="L91"></a><tt class="py-lineno">91</tt> <a class="py-toggle" href="#" id="BfClient.__init__-toggle" onclick="return toggle('BfClient.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="bfpy.bfclient.BfClient-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BfClient.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="BfClient.__init__-expanded"><a name="L92"></a><tt class="py-lineno">92</tt>  <tt class="py-line">        <tt id="link-15" class="py-name"><a title="bfpy.bfapi.BfApi" class="py-name" href="#" onclick="return doclink('link-15', 'BfApi', 'link-1');">BfApi</a></tt><tt class="py-op">.</tt><tt id="link-16" class="py-name" targets="Method bfpy.bfapi.BfApi.MinStake.__init__()=bfpy.bfapi.BfApi.MinStake-class.html#__init__,Method bfpy.bfapi.BfApi.__init__()=bfpy.bfapi.BfApi-class.html#__init__,Method bfpy.bfapicalls.ApiCall.__init__()=bfpy.bfapicalls.ApiCall-class.html#__init__,Method bfpy.bfapicalls.ApiCallExchange.__init__()=bfpy.bfapicalls.ApiCallExchange-class.html#__init__,Method bfpy.bfapicalls.ApiCallGlobal.__init__()=bfpy.bfapicalls.ApiCallGlobal-class.html#__init__,Method bfpy.bfapicalls.ApiCallVendor.__init__()=bfpy.bfapicalls.ApiCallVendor-class.html#__init__,Method bfpy.bfclient.BfClient.__init__()=bfpy.bfclient.BfClient-class.html#__init__,Method bfpy.bfclientext.GetCurrentBets.__init__()=bfpy.bfclientext.GetCurrentBets-class.html#__init__,Method bfpy.bfclientext.GetEvents.__init__()=bfpy.bfclientext.GetEvents-class.html#__init__,Method bfpy.bfclientext.PlaceBets.__init__()=bfpy.bfclientext.PlaceBets-class.html#__init__,Method bfpy.bfcounter.DataCounter.__init__()=bfpy.bfcounter.DataCounter-class.html#__init__,Method bfpy.bfcounter.DataRequest.__init__()=bfpy.bfcounter.DataRequest-class.html#__init__,Method bfpy.bfdirect.ApiService.__init__()=bfpy.bfdirect.ApiService-class.html#__init__,Method bfpy.bferror.BfApiError.__init__()=bfpy.bferror.BfApiError-class.html#__init__,Method bfpy.bferror.BfApplicationError.__init__()=bfpy.bferror.BfApplicationError-class.html#__init__,Method bfpy.bferror.BfBetfairError.__init__()=bfpy.bferror.BfBetfairError-class.html#__init__,Method bfpy.bferror.BfError.__init__()=bfpy.bferror.BfError-class.html#__init__,Method bfpy.bferror.BfHtmlError.__init__()=bfpy.bferror.BfHtmlError-class.html#__init__,Method bfpy.bferror.BfHttpError.__init__()=bfpy.bferror.BfHttpError-class.html#__init__,Method bfpy.bferror.BfNetworkError.__init__()=bfpy.bferror.BfNetworkError-class.html#__init__,Method bfpy.bferror.BfPythonError.__init__()=bfpy.bferror.BfPythonError-class.html#__init__,Method bfpy.bferror.BfServiceError.__init__()=bfpy.bferror.BfServiceError-class.html#__init__,Method bfpy.bferror.BfTransportError.__init__()=bfpy.bferror.BfTransportError-class.html#__init__,Method bfpy.bfprocessors.ArrayFix.__init__()=bfpy.bfprocessors.ArrayFix-class.html#__init__,Method bfpy.bfprocessors.ProcMarketPricesCompressed.__init__()=bfpy.bfprocessors.ProcMarketPricesCompressed-class.html#__init__,Method bfpy.bfservice.ExchangeObject.__init__()=bfpy.bfservice.ExchangeObject-class.html#__init__,Method bfpy.bfservice.ExchangeServiceDef.__init__()=bfpy.bfservice.ExchangeServiceDef-class.html#__init__,Method bfpy.bfservice.GlobalObject.__init__()=bfpy.bfservice.GlobalObject-class.html#__init__,Method bfpy.bfservice.GlobalServiceDef.__init__()=bfpy.bfservice.GlobalServiceDef-class.html#__init__,Method bfpy.bfservice.ServiceDef.__init__()=bfpy.bfservice.ServiceDef-class.html#__init__,Method bfpy.bfservice.ServiceDescriptor.__init__()=bfpy.bfservice.ServiceDescriptor-class.html#__init__,Method bfpy.bfservice.ServiceObject.__init__()=bfpy.bfservice.ServiceObject-class.html#__init__,Method bfpy.bfservice.VendorObject.__init__()=bfpy.bfservice.VendorObject-class.html#__init__,Method bfpy.bfservice.VendorServiceDef.__init__()=bfpy.bfservice.VendorServiceDef-class.html#__init__,Method bfpy.bftimezone.LocalTimezone.__init__()=bfpy.bftimezone.LocalTimezone-class.html#__init__,Method bfpy.bftransport.BfTransport.__init__()=bfpy.bftransport.BfTransport-class.html#__init__,Method bfpy.bftransport.BfTransportError.__init__()=bfpy.bftransport.BfTransportError-class.html#__init__,Method bfpy.bftransport.BfTransportHtmlError.__init__()=bfpy.bftransport.BfTransportHtmlError-class.html#__init__,Method bfpy.bftransport.BfTransportHttpError.__init__()=bfpy.bftransport.BfTransportHttpError-class.html#__init__,Method bfpy.bftransport.BfTransportReply.__init__()=bfpy.bftransport.BfTransportReply-class.html#__init__,Method bfpy.bftransport.BfTransportRequest.__init__()=bfpy.bftransport.BfTransportRequest-class.html#__init__,Method bfpy.bftransport.BfTransportSocketError.__init__()=bfpy.bftransport.BfTransportSocketError-class.html#__init__,Method bfpy.bftypes.APIRequestHeader.__init__()=bfpy.bftypes.APIRequestHeader-class.html#__init__,Method bfpy.bftypes.AddPaymentCardReq.__init__()=bfpy.bftypes.AddPaymentCardReq-class.html#__init__,Method bfpy.bftypes.ApiDataType.__init__()=bfpy.bftypes.ApiDataType-class.html#__init__,Method bfpy.bftypes.ApiParam.__init__()=bfpy.bftypes.ApiParam-class.html#__init__,Method bfpy.bftypes.CancelBets.__init__()=bfpy.bftypes.CancelBets-class.html#__init__,Method bfpy.bftypes.CancelBetsByMarketReq.__init__()=bfpy.bftypes.CancelBetsByMarketReq-class.html#__init__,Method bfpy.bftypes.CancelBetsReq.__init__()=bfpy.bftypes.CancelBetsReq-class.html#__init__,Method bfpy.bftypes.CancelVendorAccessRequestReq.__init__()=bfpy.bftypes.CancelVendorAccessRequestReq-class.html#__init__,Method bfpy.bftypes.ConvertCurrencyReq.__init__()=bfpy.bftypes.ConvertCurrencyReq-class.html#__init__,Method bfpy.bftypes.CreateVendorAccessRequestReq.__init__()=bfpy.bftypes.CreateVendorAccessRequestReq-class.html#__init__,Method bfpy.bftypes.DeletePaymentCardReq.__init__()=bfpy.bftypes.DeletePaymentCardReq-class.html#__init__,Method bfpy.bftypes.DepositFromPaymentCardReq.__init__()=bfpy.bftypes.DepositFromPaymentCardReq-class.html#__init__,Method bfpy.bftypes.ForgotPasswordReq.__init__()=bfpy.bftypes.ForgotPasswordReq-class.html#__init__,Method bfpy.bftypes.GetAccountFundsReq.__init__()=bfpy.bftypes.GetAccountFundsReq-class.html#__init__,Method bfpy.bftypes.GetAccountStatementReq.__init__()=bfpy.bftypes.GetAccountStatementReq-class.html#__init__,Method bfpy.bftypes.GetAllMarketsReq.__init__()=bfpy.bftypes.GetAllMarketsReq-class.html#__init__,Method bfpy.bftypes.GetBetHistoryReq.__init__()=bfpy.bftypes.GetBetHistoryReq-class.html#__init__,Method bfpy.bftypes.GetBetLiteReq.__init__()=bfpy.bftypes.GetBetLiteReq-class.html#__init__,Method bfpy.bftypes.GetBetMatchesLiteReq.__init__()=bfpy.bftypes.GetBetMatchesLiteReq-class.html#__init__,Method bfpy.bftypes.GetBetReq.__init__()=bfpy.bftypes.GetBetReq-class.html#__init__,Method bfpy.bftypes.GetCompleteMarketPricesCompressedReq.__init__()=bfpy.bftypes.GetCompleteMarketPricesCompressedReq-class.html#__init__,Method bfpy.bftypes.GetCurrenciesReq.__init__()=bfpy.bftypes.GetCurrenciesReq-class.html#__init__,Method bfpy.bftypes.GetCurrenciesV2Req.__init__()=bfpy.bftypes.GetCurrenciesV2Req-class.html#__init__,Method bfpy.bftypes.GetCurrentBetsLiteReq.__init__()=bfpy.bftypes.GetCurrentBetsLiteReq-class.html#__init__,Method bfpy.bftypes.GetCurrentBetsReq.__init__()=bfpy.bftypes.GetCurrentBetsReq-class.html#__init__,Method bfpy.bftypes.GetDetailedAvailableMktDepthReq.__init__()=bfpy.bftypes.GetDetailedAvailableMktDepthReq-class.html#__init__,Method bfpy.bftypes.GetEventTypesReq.__init__()=bfpy.bftypes.GetEventTypesReq-class.html#__init__,Method bfpy.bftypes.GetEventsReq.__init__()=bfpy.bftypes.GetEventsReq-class.html#__init__,Method bfpy.bftypes.GetInPlayMarketsReq.__init__()=bfpy.bftypes.GetInPlayMarketsReq-class.html#__init__,Method bfpy.bftypes.GetMUBetsLiteReq.__init__()=bfpy.bftypes.GetMUBetsLiteReq-class.html#__init__,Method bfpy.bftypes.GetMUBetsReq.__init__()=bfpy.bftypes.GetMUBetsReq-class.html#__init__,Method bfpy.bftypes.GetMarketInfoReq.__init__()=bfpy.bftypes.GetMarketInfoReq-class.html#__init__,Method bfpy.bftypes.GetMarketPricesCompressedReq.__init__()=bfpy.bftypes.GetMarketPricesCompressedReq-class.html#__init__,Method bfpy.bftypes.GetMarketPricesReq.__init__()=bfpy.bftypes.GetMarketPricesReq-class.html#__init__,Method bfpy.bftypes.GetMarketProfitAndLossReq.__init__()=bfpy.bftypes.GetMarketProfitAndLossReq-class.html#__init__,Method bfpy.bftypes.GetMarketReq.__init__()=bfpy.bftypes.GetMarketReq-class.html#__init__,Method bfpy.bftypes.GetMarketTradedVolumeCompressedReq.__init__()=bfpy.bftypes.GetMarketTradedVolumeCompressedReq-class.html#__init__,Method bfpy.bftypes.GetMarketTradedVolumeReq.__init__()=bfpy.bftypes.GetMarketTradedVolumeReq-class.html#__init__,Method bfpy.bftypes.GetPaymentCardReq.__init__()=bfpy.bftypes.GetPaymentCardReq-class.html#__init__,Method bfpy.bftypes.GetPrivateMarketsReq.__init__()=bfpy.bftypes.GetPrivateMarketsReq-class.html#__init__,Method bfpy.bftypes.GetSilksReq.__init__()=bfpy.bftypes.GetSilksReq-class.html#__init__,Method bfpy.bftypes.GetSilksV2Req.__init__()=bfpy.bftypes.GetSilksV2Req-class.html#__init__,Method bfpy.bftypes.GetSubscriptionInfoReq.__init__()=bfpy.bftypes.GetSubscriptionInfoReq-class.html#__init__,Method bfpy.bftypes.GetVendorAccessRequestsReq.__init__()=bfpy.bftypes.GetVendorAccessRequestsReq-class.html#__init__,Method bfpy.bftypes.GetVendorInfoReq.__init__()=bfpy.bftypes.GetVendorInfoReq-class.html#__init__,Method bfpy.bftypes.GetVendorUsersReq.__init__()=bfpy.bftypes.GetVendorUsersReq-class.html#__init__,Method bfpy.bftypes.KeepAliveReq.__init__()=bfpy.bftypes.KeepAliveReq-class.html#__init__,Method bfpy.bftypes.LoginReq.__init__()=bfpy.bftypes.LoginReq-class.html#__init__,Method bfpy.bftypes.LogoutReq.__init__()=bfpy.bftypes.LogoutReq-class.html#__init__,Method bfpy.bftypes.ModifyPasswordReq.__init__()=bfpy.bftypes.ModifyPasswordReq-class.html#__init__,Method bfpy.bftypes.ModifyProfileReq.__init__()=bfpy.bftypes.ModifyProfileReq-class.html#__init__,Method bfpy.bftypes.PlaceBets.__init__()=bfpy.bftypes.PlaceBets-class.html#__init__,Method bfpy.bftypes.PlaceBetsReq.__init__()=bfpy.bftypes.PlaceBetsReq-class.html#__init__,Method bfpy.bftypes.RetrieveLIMBMessageReq.__init__()=bfpy.bftypes.RetrieveLIMBMessageReq-class.html#__init__,Method bfpy.bftypes.SelfExcludeReq.__init__()=bfpy.bftypes.SelfExcludeReq-class.html#__init__,Method bfpy.bftypes.SetChatNameReq.__init__()=bfpy.bftypes.SetChatNameReq-class.html#__init__,Method bfpy.bftypes.SubmitLIMBMessageReq.__init__()=bfpy.bftypes.SubmitLIMBMessageReq-class.html#__init__,Method bfpy.bftypes.TransferFundsReq.__init__()=bfpy.bftypes.TransferFundsReq-class.html#__init__,Method bfpy.bftypes.UpdateBets.__init__()=bfpy.bftypes.UpdateBets-class.html#__init__,Method bfpy.bftypes.UpdateBetsReq.__init__()=bfpy.bftypes.UpdateBetsReq-class.html#__init__,Method bfpy.bftypes.UpdatePaymentCardReq.__init__()=bfpy.bftypes.UpdatePaymentCardReq-class.html#__init__,Method bfpy.bftypes.VendorSubscriptionReq.__init__()=bfpy.bftypes.VendorSubscriptionReq-class.html#__init__,Method bfpy.bftypes.ViewProfileReq.__init__()=bfpy.bftypes.ViewProfileReq-class.html#__init__,Method bfpy.bftypes.ViewProfileV2Req.__init__()=bfpy.bftypes.ViewProfileV2Req-class.html#__init__,Method bfpy.bftypes.ViewReferAndEarnReq.__init__()=bfpy.bftypes.ViewReferAndEarnReq-class.html#__init__,Method bfpy.bftypes.WithdrawToPaymentCardReq.__init__()=bfpy.bftypes.WithdrawToPaymentCardReq-class.html#__init__,Method bfpy.bfutil.EmptyObject.__init__()=bfpy.bfutil.EmptyObject-class.html#__init__,Method bfpy.bfutil.FactoryClass.__init__()=bfpy.bfutil.FactoryClass-class.html#__init__,Method bfpy.bfutil.SharedData.__init__()=bfpy.bfutil.SharedData-class.html#__init__"><a title="bfpy.bfapi.BfApi.MinStake.__init__
bfpy.bfapi.BfApi.__init__
bfpy.bfapicalls.ApiCall.__init__
bfpy.bfapicalls.ApiCallExchange.__init__
bfpy.bfapicalls.ApiCallGlobal.__init__
bfpy.bfapicalls.ApiCallVendor.__init__
bfpy.bfclient.BfClient.__init__
bfpy.bfclientext.GetCurrentBets.__init__
bfpy.bfclientext.GetEvents.__init__
bfpy.bfclientext.PlaceBets.__init__
bfpy.bfcounter.DataCounter.__init__
bfpy.bfcounter.DataRequest.__init__
bfpy.bfdirect.ApiService.__init__
bfpy.bferror.BfApiError.__init__
bfpy.bferror.BfApplicationError.__init__
bfpy.bferror.BfBetfairError.__init__
bfpy.bferror.BfError.__init__
bfpy.bferror.BfHtmlError.__init__
bfpy.bferror.BfHttpError.__init__
bfpy.bferror.BfNetworkError.__init__
bfpy.bferror.BfPythonError.__init__
bfpy.bferror.BfServiceError.__init__
bfpy.bferror.BfTransportError.__init__
bfpy.bfprocessors.ArrayFix.__init__
bfpy.bfprocessors.ProcMarketPricesCompressed.__init__
bfpy.bfservice.ExchangeObject.__init__
bfpy.bfservice.ExchangeServiceDef.__init__
bfpy.bfservice.GlobalObject.__init__
bfpy.bfservice.GlobalServiceDef.__init__
bfpy.bfservice.ServiceDef.__init__
bfpy.bfservice.ServiceDescriptor.__init__
bfpy.bfservice.ServiceObject.__init__
bfpy.bfservice.VendorObject.__init__
bfpy.bfservice.VendorServiceDef.__init__
bfpy.bftimezone.LocalTimezone.__init__
bfpy.bftransport.BfTransport.__init__
bfpy.bftransport.BfTransportError.__init__
bfpy.bftransport.BfTransportHtmlError.__init__
bfpy.bftransport.BfTransportHttpError.__init__
bfpy.bftransport.BfTransportReply.__init__
bfpy.bftransport.BfTransportRequest.__init__
bfpy.bftransport.BfTransportSocketError.__init__
bfpy.bftypes.APIRequestHeader.__init__
bfpy.bftypes.AddPaymentCardReq.__init__
bfpy.bftypes.ApiDataType.__init__
bfpy.bftypes.ApiParam.__init__
bfpy.bftypes.CancelBets.__init__
bfpy.bftypes.CancelBetsByMarketReq.__init__
bfpy.bftypes.CancelBetsReq.__init__
bfpy.bftypes.CancelVendorAccessRequestReq.__init__
bfpy.bftypes.ConvertCurrencyReq.__init__
bfpy.bftypes.CreateVendorAccessRequestReq.__init__
bfpy.bftypes.DeletePaymentCardReq.__init__
bfpy.bftypes.DepositFromPaymentCardReq.__init__
bfpy.bftypes.ForgotPasswordReq.__init__
bfpy.bftypes.GetAccountFundsReq.__init__
bfpy.bftypes.GetAccountStatementReq.__init__
bfpy.bftypes.GetAllMarketsReq.__init__
bfpy.bftypes.GetBetHistoryReq.__init__
bfpy.bftypes.GetBetLiteReq.__init__
bfpy.bftypes.GetBetMatchesLiteReq.__init__
bfpy.bftypes.GetBetReq.__init__
bfpy.bftypes.GetCompleteMarketPricesCompressedReq.__init__
bfpy.bftypes.GetCurrenciesReq.__init__
bfpy.bftypes.GetCurrenciesV2Req.__init__
bfpy.bftypes.GetCurrentBetsLiteReq.__init__
bfpy.bftypes.GetCurrentBetsReq.__init__
bfpy.bftypes.GetDetailedAvailableMktDepthReq.__init__
bfpy.bftypes.GetEventTypesReq.__init__
bfpy.bftypes.GetEventsReq.__init__
bfpy.bftypes.GetInPlayMarketsReq.__init__
bfpy.bftypes.GetMUBetsLiteReq.__init__
bfpy.bftypes.GetMUBetsReq.__init__
bfpy.bftypes.GetMarketInfoReq.__init__
bfpy.bftypes.GetMarketPricesCompressedReq.__init__
bfpy.bftypes.GetMarketPricesReq.__init__
bfpy.bftypes.GetMarketProfitAndLossReq.__init__
bfpy.bftypes.GetMarketReq.__init__
bfpy.bftypes.GetMarketTradedVolumeCompressedReq.__init__
bfpy.bftypes.GetMarketTradedVolumeReq.__init__
bfpy.bftypes.GetPaymentCardReq.__init__
bfpy.bftypes.GetPrivateMarketsReq.__init__
bfpy.bftypes.GetSilksReq.__init__
bfpy.bftypes.GetSilksV2Req.__init__
bfpy.bftypes.GetSubscriptionInfoReq.__init__
bfpy.bftypes.GetVendorAccessRequestsReq.__init__
bfpy.bftypes.GetVendorInfoReq.__init__
bfpy.bftypes.GetVendorUsersReq.__init__
bfpy.bftypes.KeepAliveReq.__init__
bfpy.bftypes.LoginReq.__init__
bfpy.bftypes.LogoutReq.__init__
bfpy.bftypes.ModifyPasswordReq.__init__
bfpy.bftypes.ModifyProfileReq.__init__
bfpy.bftypes.PlaceBets.__init__
bfpy.bftypes.PlaceBetsReq.__init__
bfpy.bftypes.RetrieveLIMBMessageReq.__init__
bfpy.bftypes.SelfExcludeReq.__init__
bfpy.bftypes.SetChatNameReq.__init__
bfpy.bftypes.SubmitLIMBMessageReq.__init__
bfpy.bftypes.TransferFundsReq.__init__
bfpy.bftypes.UpdateBets.__init__
bfpy.bftypes.UpdateBetsReq.__init__
bfpy.bftypes.UpdatePaymentCardReq.__init__
bfpy.bftypes.VendorSubscriptionReq.__init__
bfpy.bftypes.ViewProfileReq.__init__
bfpy.bftypes.ViewProfileV2Req.__init__
bfpy.bftypes.ViewReferAndEarnReq.__init__
bfpy.bftypes.WithdrawToPaymentCardReq.__init__
bfpy.bfutil.EmptyObject.__init__
bfpy.bfutil.FactoryClass.__init__
bfpy.bfutil.SharedData.__init__" class="py-name" href="#" onclick="return doclink('link-16', '__init__', 'link-16');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">kwargs</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L93"></a><tt class="py-lineno">93</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="bfpy-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/bfpy/">BfPy</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sat Jun 04 02:13:37 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
